-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: generic extension crate to de-duplicate code between runtimes #163
refactor: generic extension crate to de-duplicate code between runtimes #163
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just missing doc comments as a finishing touch.
Strange that there is no code coverage report added to this PR, nor the base branch. I'll see if I can get that resolved.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two last suggestions to simplify the language on the comments and then good to go!
Codecov ReportAttention: Patch coverage is
@@ Coverage Diff @@
## daan/api #163 +/- ##
===========================================
Coverage ? 31.43%
===========================================
Files ? 34
Lines ? 2885
Branches ? 2885
===========================================
Hits ? 907
Misses ? 1955
Partials ? 23
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for your patience!
Description
Removing the extension from the
devnet
andtestnet
runtimes. Make sure that adding features in the future for one runtime does not impact the other runtimes.CHANGELOG
pop-runtime-extension
inruntime/extension
pop-runtime-extension
crate topop-runtime-testnet
: (no merge) refactor: migrate testnet chain extension #167pop-runtime-devnet
. This can be improved in the another PR to make something likeTestSuiteBuilder
that can be reused in multiple runtimes.How feature can be added in the future?
Create a struct
Extension
and implement theReadState
trait andCallFilter
trait for theExtension
to handle the queries from the contract environment.